﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Elderos.Utils
{
	public static class MemoryMeasurer
	{
		/// <summary>
		/// Returns current memory consumption in Mb
		/// </summary>
		public static decimal MemoryConsumption
		{
			get
			{
				long currentMemory = GC.GetTotalMemory(true);
				decimal mb = ((decimal)currentMemory)/(1024*1024);
				return mb;
			}
		}
	}
}
